package com.arpa.ntocc.common.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 数据字典表DTO
 * </p>
 *
 * @author liuyj
 * @since 2019-11-25
 */
@Data
@ApiModel(value="DictDTO对象", description="数据字典表")
public class DictDTO extends BasicEntity {


    @ApiModelProperty(value = "字典类型")
    private String type;

    @ApiModelProperty(value = "字典code")
    @Length(max = 100, message = "编码最多输入100个字符")
    private String code;

    @ApiModelProperty(value = "名字")
    @Length(max = 255, message = "名称最多输入255个字符")
    private String name;

    @ApiModelProperty(value = "0正常/1停用")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @Length(max = 255, message = "备注最多输入255个字符")
    private String remark;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "机构code")
    private String branchCode;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "字典code")
    private String oldCode;

}
